home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / SPLINE.ZIP / BALLANIM.POV next >
Encoding:
Text File  |  1997-03-10  |  933 b   |  28 lines

  1. // SPLINE GENERATOR SAMPLE: BOUNCING BALL ANIMATION
  2. // ************************************************
  3.  
  4. camera {location <5, 40, -70> look_at <0, 7, 0> angle 30}
  5. light_source {<5, 80, -40> rgb 1
  6.    spotlight point_at <0, 0, 0> radius 5 falloff 20}
  7.  
  8. disc {<0, 0, 0>, y, 40
  9.    texture {checker
  10.       texture {
  11.          pigment {marble color_map {[.8 rgb 0] [1 rgb .7]}
  12.             turbulence .8 scale .6}
  13.          finish {ambient 0 diffuse 1 reflection .6}}
  14.       texture {
  15.          pigment {marble color_map {[.8 rgb 1] [1 rgb .3]}
  16.             turbulence .8 scale .6 translate <-100, 0, 0>}
  17.          finish {ambient 0 diffuse 1 reflection .8}}
  18.       scale 8}}
  19.  
  20. #include "Unsmooth.spl"
  21. #declare scale_factor = (10 - spline_pos.y) / 20
  22.  
  23. sphere {<0, 1, 0>, 1
  24.    pigment {rgb <1, 0 ,0>}
  25.    finish {phong .6 phong_size 5}
  26.    scale <2 + scale_factor, 2 - scale_factor, 2 + scale_factor>
  27.    translate spline_pos}
  28.